projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f72456
)
Make GtkBorder style properties have a non-NULL default
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 20 Jan 2011 01:42:50 +0000
(20:42 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 20 Jan 2011 02:24:30 +0000
(21:24 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=639625
gtk/gtkstyleproperties.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstyleproperties.c
b/gtk/gtkstyleproperties.c
index 0052257cbe939edf7e8eb6cf290ccb42160a78fc..99cbf73e8fe87e3d8ded8a3bc6bacec475650a4d 100644
(file)
--- a/
gtk/gtkstyleproperties.c
+++ b/
gtk/gtkstyleproperties.c
@@
-869,6
+869,10
@@
lookup_default_value (PropertyNode *node,
gdk_rgba_parse (&color, "pink");
g_value_set_boxed (value, &color);
}
+ else if (node->pspec->value_type == GTK_TYPE_BORDER)
+ {
+ g_value_take_boxed (value, gtk_border_new ());
+ }
else
g_param_value_set_default (node->pspec, value);
}